package com.supplychain.scm.core.common.validator.json;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({
		ElementType.METHOD,
		ElementType.FIELD,
		ElementType.ANNOTATION_TYPE,
		ElementType.CONSTRUCTOR,
		ElementType.PARAMETER,
		ElementType.TYPE_USE
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
		validatedBy = MustJSONValidator.class
)
public @interface MustJSON {

	String message() default "必须是合法的JSON字符串";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};

}
